import React from 'react'
import { Button, Space } from 'antd-mobile'
import { Link, useNavigate } from 'react-router-dom'
function Page1() {
    const nav=useNavigate()
  return (
    <div>
        <Button onClick={()=>nav('/page2')}>去页面2</Button>
        <Link to='/page2'>去页面2</Link>
    </div>
  )
}

export default Page1